{extend name="default/shops/base" /}
{block name="title"}查看投诉 - 卖家中心{__block__}{/block}
{block name="css"}
{/block}
{block name="content"}
<style>
.wst-order-list tbody td{
  text-align: center;
}
.wst-order-list tbody tr{
  line-height: 30px;
}
</style>
  <div class="wst-shop-head"><span>投诉订单</span></div>
  <div class='wst-shop-tbar'>
     订单号：<input type='text' class="s-query" id='orderNo'/>
     <a class="s-btn" onclick="complainByPage()">查询</a>
  </div>
  <div class='wst-shop-content'>
    <table class='wst-order-list'>
       <thead>
	      <tr class='head'>
	         <th>订单编号</th>
           <th>投诉方</th>
           <th>投诉原因</th>
           <th>投诉时间</th>
           <th>投诉状态</th>
           <th>操作</th>
	      </tr>
	   </thead>
	   <tbody id='list'></tbody>
       <script id="tblist" type="text/html">
       {{# for(var i = 0; i < d.length; i++){ }}
          <tr>
          <td>
            {{d[i]['orderNo']}}
            {{# if(d[i].orderCodeTitle!=""){ }}
              <span class="order_from">{{d[i].orderCodeTitle}}</span>
            {{# } }}
          </td>

          <td>{{WST.blank(d[i]['userName'],d[i]['loginName'])}}</td>

          <td title="{{d[i]['complainContent']}}">{{WST.cutStr(d[i]['complainContent'],50)}}</td>

          <td>{{d[i]['complainTime']}}</td>

          <td>{{d[i]['complainStatus']}}</td>

          <td>
            <a style="cursor:pointer;" onclick="toView({{d[i]['complainId']}})">查看</a>
            {{# if(d[i]['needReply']==1){ }}<a style="cursor:pointer;" onclick="toRespond({{d[i]['complainId']}})">应诉</a>{{# } }}
          </td>
          
         </tr>
       {{# } }}
      </script>
       <tr class='empty-row'>
            <td colspan='4' id='pager' align="center" style='padding:5px 0px 5px 0px'>&nbsp;</td>
       </tr>
    </table>
  </div>
{/block}
{block name="js"}
<script type='text/javascript' src='__STYLE__/shops/orders/orders.js?v={$v}'></script>
<script>
$(function(){
   complainByPage();
})
</script>
{/block}
